<template>
  <div class="Button">
    <a-button class="btn" @click="buttonClickEvent">{{msg}}</a-button>
  </div>
</template>

<script>
export default {
  props: {
    msg: {
      default: '按钮'
    }
  },
  methods: {
    buttonClickEvent: function () {
      this.$emit('buttonClickEvent')
    }
  }
}
</script>

<style scoped>
  .btn{
    float: left;
  }
</style>